import { useGet } from "./useGet";
import { usePost } from "./usePost";

//语义类别管理
export const getInitMessage = (params: object) => {
    return useGet("/admin/getInitMessage", params);
};
export const addSentenceType = (body: any) => {
    return usePost("/myData/addSentenceType", body);
};
export const pageTree = (params: any) => {
    return useGet("/tree/vue/page", params);
};
export const groupTree = (params: any) => {
    return useGet("/tree/vue/groupTree", params);
};
export const listTree = (params: any) => {
    return useGet("/tree/vue/list", params);
};
export const deleteTree = (typeId: any) => {
    return useGet("/tree/vue/delete", {
        ids: typeId
    });
};
export const saveTree = (body: any) => {
    return usePost("/tree/vue/save", body);
};

//关键词管理
export const listKeyWordType = (params: any) => {
    return useGet("/keywordType/vue/list", params);
};
export const deleteKeyWordType = (typeId: any) => {
    return useGet("/keywordType/vue/delete", {
        ids: typeId
    });
};
export const saveKeyWordType = (body: any) => {
    return usePost("/keywordType/vue/save", body);
};
//语句管理
export const pageSentence = (params: any) => {
    return useGet("/sentence/vue/page", params);
};
export const deleteSentence = (params: any) => {
    return useGet("/sentence/vue/delete", params);
};
export const saveSentence = (params: any) => {
    return usePost("/sentence/vue/save", params);
};

//qa管理
export const pageQa = (params: any) => {
    return useGet("/qa/vue/page", params);
};
export const deleteQa = (params: any) => {
    return useGet("/qa/vue/delete", params);
};
export const saveQa = (params: any) => {
    return usePost("/qa/vue/save", params);
};

//配置管理
export const pageConfig = (params: any) => {
    return useGet("/sentence/config/vue/page", params);
};
export const deleteConfig = (params: any) => {
    return useGet("/sentence/config/vue/delete", params);
};
export const useConfig = (params: any) => {
    return useGet("/sentence/config/vue/use", params);
};
export const initModel = (params: any) => {
    return useGet("/sentence/config/vue/init", params);
};
export const deleteModel = (params: any) => {
    return useGet("/sentence/config/vue/deleteModel", params);
};
export const getStatus = (params: any) => {
    return useGet("/sentence/config/vue/getStatus", params);
};
export const saveConfig = (params: any) => {
    return usePost("/sentence/config/vue/save", params);
};